package com.ctsi.security.app.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 添加角色数据对象，接收数据
 */
public class RoleDataObjectAddVO implements Serializable {
    private static final long serialVersionUID = -2883202643098938998L;

    @NotBlank(message = "数据对象名称不能为空!")
    private String dataObjectName;

    @NotBlank(message = "数据对象类型不能为空!")
    private String dataObjectTypeId;

    @NotEmpty(message = "动作字典不能为空!")
    private List<String> actions = new ArrayList<>();

    @NotBlank(message = "数据对象ID不能为空!")
    private String dataObjectId;

    public RoleDataObjectAddVO() {
    }

    public String getDataObjectName() {
        return dataObjectName;
    }

    public void setDataObjectName(String dataObjectName) {
        this.dataObjectName = dataObjectName;
    }

    public List<String> getActions() {
        return actions;
    }

    public void setActions(List<String> actions) {
        this.actions = actions;
    }

    public String getDataObjectTypeId() {
        return dataObjectTypeId;
    }

    public void setDataObjectTypeId(String dataObjectTypeId) {
        this.dataObjectTypeId = dataObjectTypeId;
    }

    public String getDataObjectId() {
        return dataObjectId;
    }

    public void setDataObjectId(String dataObjectId) {
        this.dataObjectId = dataObjectId;
    }
}
